package top.oylan.manager.controller.home;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by A on 2019/2/1.
 */
@Controller
public class HelloController {

    @Autowired
//    OylanRedisComponent redisComponent;

    @RequestMapping(value = {"","/","/index"})
    public String index()
    {
     //   redisComponent.set(key,value);
        return "home/index";
    }

//    @ResponseBody
//    @RequestMapping("/get")
//    public String get(String key){
//        return redisComponent.get(key);
//    }
}